<link rel="stylesheet" type="text/css" href="<?php echo base_url('skin/css/admin.css');?>" />
<!-- List Of Ranges  -->

    <div id="tabs-1" class="ui-tabs-panel ui-widget-content ui-corner-bottom" aria-labelledby="ui-id-1" role="tabpanel" aria-hidden="false">
        <!--table border="0" cellpadding="0" cellspacing="0" class="borderless">
            <thead>
                <tr>
                    <th><div><b>Audit</b></div></th>
                    <th></th>
                    <th></th>
                </tr>
            </thead>
        </table-->
        <table>
            <thead>
                <tr>
                    <?php foreach ($datahead as $key => $value):?>
                    <th><?php echo $value;?></th>
                    <?php endforeach;?>
                </tr>
            </thead>
            <tbody>
                <?php $i=0;foreach($audit as $key => $data) : ?>
                <tr<?php echo (($i%2)==0)?' style="background-color: #eee;"':'';?>>
                    <?php foreach ($datahead as $key => $value):?>
                    <td><?php echo ($key=='event')?$events[$data->$key]:nl2br($data->$key); ?></td>
                    <?php endforeach;?>
                </tr>
                <?php $i++;endforeach; ?>
            </tbody>  
        </table>
    </div>
